 package com.gitee.jmash.oidc.oauth2.models;

 import com.gitee.jmash.rbac.enums.TokenType;
import jakarta.json.bind.annotation.JsonbProperty;

 /** oauth2 TokenResponse. */
 public class TokenResponse {

   /** 访问Token. */
   @JsonbProperty("access_token")
   private String accessToken;
   /** Token类型. */
   @JsonbProperty("token_type")
   private TokenType tokenType;
   /** 过期秒数. */
   @JsonbProperty("expires_in")
   private Integer expiresIn;
   /** 刷新Token. */
   @JsonbProperty("refresh_token")
   private String refreshToken;
   /** 授权范围. */
   @JsonbProperty("scope")
   private String scope;
   /** OpenId id_token. */
   @JsonbProperty("id_token")
   private String idToken;

   public String getAccessToken() {
     return accessToken;
   }

   public void setAccessToken(String accessToken) {
     this.accessToken = accessToken;
   }

   public TokenType getTokenType() {
     return tokenType;
   }

   public void setTokenType(TokenType tokenType) {
     this.tokenType = tokenType;
   }

   public Integer getExpiresIn() {
     return expiresIn;
   }

   public void setExpiresIn(Integer expiresIn) {
     this.expiresIn = expiresIn;
   }

   public String getRefreshToken() {
     return refreshToken;
   }

   public void setRefreshToken(String refreshToken) {
     this.refreshToken = refreshToken;
   }

   public String getScope() {
     return scope;
   }

   public void setScope(String scope) {
     this.scope = scope;
   }

   public String getIdToken() {
     return idToken;
   }

   public void setIdToken(String idToken) {
     this.idToken = idToken;
   }
   
   

 }
